package com.asia5b.a5mall.middleware.model.shop

import android.text.TextUtils
import com.asia5b.a5mall.middleware.model.base.BaseModel

/**
 * Created by zhangyuncai on 2020/7/1.
 * 申请店铺的状态
 */
class ApplyShopStateModel : BaseModel() {
    /*
    /**
 * 开启中
 */
OPEN("开启中"),
/**
 * 店铺关闭
 */
CLOSED("店铺关闭"),
/**
 * 申请开店
 */
APPLY("申请开店"),
/**
 * 审核拒绝
 */
REFUSED("审核拒绝"),
/**
 * 申请中
 */
APPLYING("申请中");
     */
    val shop_status = ""//当为空或者APPLYING表示可以申请店铺
    fun isCanApplyShop(): Boolean {
        return TextUtils.isEmpty(shop_status) || TextUtils.equals("APPLYING", shop_status)
    }
}

/*
"开店中" = "开店中";
"店铺关闭" = "店铺关闭";
"店铺正在审核中" = "店铺正在审核中";
"抱歉您的申请开店被拒绝，你可以重新申请" = "抱歉您的申请开店被拒绝，你可以重新申请";
 */

//shop_status为空时表示第一次申请
/*
 {
     "member_id": null,
     "operator": null,
     "shop_status": "APPLY"
 }
 */